﻿<%@ Page Language="C#" MasterPageFile="~/U_masterP.master" AutoEventWireup="true"
    CodeFile="revenues.aspx.cs" Inherits="revenues" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="uc_main/sideBar_right.ascx" TagName="sideBar_right" TagPrefix="uc1" %>
<%@ Register Src="uc_main/menu_canhan.ascx" TagName="menu_canhan" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style>
        #content_left2
        {
            width: 100%;
            margin: 0px 0px;
            float: left;
            position: relative;
            min-height: 700px;
        }
    </style>
    <div id="content_top">
        <%--<asp:CheckBox ID="CheckBox1" runat="server"/>--%>
        <div id="kep">
            <a href="#">Trang cá nhân</a></div>
        <div id="tags">
            <div id="result">
            </div>
            <% if (Session["KhachHang"] != null)
               { %>
            <div id="Iwill">
                Tôi sẽ
                <asp:TextBox ID="TextBox1" CssClass="txtTieptuc" Width="400px" runat="server" MaxLength="200" onkeyup="valid(this,'special')" onblur="valid(this,'special')"></asp:TextBox>
                chỉ với 5$.
                <ajaxToolkit:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" runat="server"
                    FilterMode="InvalidChars" InvalidChars="!@#$%^&amp;*()_-+=\|{}[]&quot;':,&lt;&gt;.?/"
                    TargetControlID="TextBox1">
                </ajaxToolkit:FilteredTextBoxExtender>
                <div id="btn_tieptuc">
                    <asp:Button ID="btnTiep2" CssClass="tieptuc" runat="server" OnClientClick="return checkTT()"
                        Text="Tiếp tục" OnClick="btnTiep2_Click" /></div>
            </div>
            <% }
               else { } %>
        </div>
        <%--<a href="#">
                    <img alt="X" src="img/dky.png" /></a>--%>
    </div>
    <div class="clear">
    </div>
    <div id="sub_content">
        <div id="content_left2">
            <uc2:menu_canhan ID="menu_canhan1" runat="server" />
            <div id="main_canhan">
                <div style="clear: both">
                </div>
                <div style="float: left; width: 100%; padding: 5px 0; background: #cecece">
                    <span style="float: right; background: #fff; padding: 3px; border-radius: 3px; margin-right: 5px">
                        <asp:Literal runat="server" ID="ltrCheckOut"></asp:Literal>
                    </span>
                </div>
                <div style="padding: 5px">
                    <div class="item-revenues">
                        <h3 class="item-revenues-available">
                            <b>$<asp:Literal runat="server" ID="ltrAvailable"> </asp:Literal></b> Available
                            <br />
                            <span>Số tiền hiện có trong tài khoản mà bạn có thể yêu cầu thanh toán qua paypal</span>
                        </h3>
                        <h3 class="item-revenues-withdrawn">
                            <b>$<asp:Literal runat="server" ID="ltrAlready"></asp:Literal>
                            </b>Already withdraw
                            <br />
                            <span>Số tiền mà bạn hệ thống đã thanh toán qua paypal cho bạn</span>
                        </h3>
                        <h3 class="item-revenues-waiting">
                            <b>$<asp:Literal runat="server" ID="ltrWaiting"></asp:Literal>
                            </b>Awaiting Clearance
                            <br />
                            <span>Số tiền đang chờ hệ thống chuyển vào tài khoản của bạn</span>
                        </h3>
                    </div>
                    <div class="item-revenues">
                        <h3 class="item-revenues-revenuespurchase">
                            <b>$<asp:Literal runat="server" ID="ltrRevenuePurchase"></asp:Literal>
                            </b>Revenue Purchases
                            <br />
                            <span>Số tiền bạn kiếm được trên hệ thống đã dùng mua hàng
                        </h3>
                        <h3 class="item-revenues-revenuespurchase">
                            <b>$<asp:Literal runat="server" ID="ltrFeature"></asp:Literal>
                            </b>Upcoming Payments
                            <br />
                            <span>Số tiền trên các đơn hàng đang hoạt động</span>
                        </h3>
                    </div>
                </div>
                <div style="clear: both">
                </div>
                <asp:Repeater runat="server" ID="GridView1">
                    <HeaderTemplate>
                        <div class="datalist-item datalist-item-first ">
                            <div class="datalist-item-date">
                                <b>Ngày</b>
                            </div>
                            <div class="datalist-item-title" style="width: 20%">
                                <b>Đơn hàng</b>
                            </div>
                            <div class="datalist-item-status" style="width: 50%; text-align: left">
                                <b>Công việc</b>
                            </div>
                            <div class="datalist-item-total" style="width: 18%">
                                <b>Người mua</b>
                            </div>
                        </div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div class="datalist-item">
                            <div class="datalist-item-date">
                                <%#string.Format("{0:dd/MM/yyyy}",Eval("ngay")) %>
                            </div>
                            <div class="datalist-item-title" style="width: 20%">
                                <a href='orders.aspx?id=<%# Eval("idDH") %>'>
                                    <%#Eval("Order.idDH")%></a>
                            </div>
                            <div class="datalist-item-status " style="width: 50%; text-align: left">
                                <%#Eval("Order.Gig.TenCongViec")%>
                            </div>
                            <div class="datalist-item-total " style="width: 18%">
                                <%#Eval("Order.Gig.VLGAccount.UsernameE") %>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div class="pager">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Left" Width="100%"
                        PageIndexBoxType="DropDownList" PageSize="15" OnPageChanged="AspNetPager1_PageChanged"
                        AlwaysShowFirstLastPageNumber="true" FirstPageText="First" PrevPageText="Previous"
                        NextPageText="Next" LastPageText="Last" NumericButtonCount="5" ShowNavigationToolTip="true">
                    </webdiyer:AspNetPager>
                </div>
            </div>
            <!-- ket  thuc noi dung -->
        </div>
    </div>
    <script type="text/javascript">
        var r = {
            'special': /['\\!@#$%^&*\()\{\}\[\]\"\b\/\|\+=_\-<>,;?']/g, ///[\W]/g,
            'quotes': /['\''&'\"']/g,
            'notnumbers': /[^\d]/g,
            'custum': /['\\!@#$%^&*\()\"\b\/\|\:+=_\-<>;.?']/g,
            'email': /['\\!#$%^&*\()\"\b\/\|\:+=_\-<>;?']/g
        }

        function valid(o, w) {
            o.value = o.value.replace(r[w], '');
        }
        function checkTT() {
            if ($('.txtTieptuc').val() == "") {
                alert('Không được để trống ');
                $('.txtTieptuc').focus();
                return false;
            }
        }
    </script>
</asp:Content>
